package layoutTest;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Layout;

public class FillLayoutTest extends Composite
	{

		public FillLayoutTest(Composite parent) 
		{
			super(parent, SWT.NONE);
						
			try
			{
				initComposite();
				
				
				
			}
			catch (Exception e) 
			{
				
			}
			finally
			{
				
			}
			
		}
		
		private void initComposite()
		{
			Layout layout = null;
			Button button = null;
			
			try
			{
				layout = new FillLayout(SWT.VERTICAL);
				
				this.setLayout(layout);
				
				for(int i = 0 ; i < 8 ; i++)
				{
					button = new Button(this, SWT.NONE);
					button.setText("asdf");
					button.pack();
				}
				
				
				
			
				this.pack();
				
			}
			catch (Exception e) 
			{
				
			}
			finally
			{
				
			}
		}
		
	}